#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>

void print(int signo)
{
	printf("catch signature : %d\n",signo);
}

int main()
{
	pid_t pid = fork();
	if(pid == 0)
	{
		signal(50,print);
		while(1);
	}
	sleep(1);
	printf("parent send the signature.\n");
	kill(pid,50);	
}
